﻿@using GSLMS.WebAPP
@model GSLMS.Entity.TB_APP_PROINFO
@{
    Layout = null;

    var ddlProduct = ViewData["Product"] as SelectList;
    var ddlSource = ViewData["Source"] as SelectList;
    var ddlDocType = ViewData["DocType"] as SelectList;
    var ddlRepayment = ViewData["Repayment"] as SelectList;
    var ddlHouType = ViewData["HouType"] as SelectList;
    var ddlBussType = ViewData["BussType"] as SelectList;
    var ddlSignMan = ViewData["SignMan"] as SelectList;
    var riskStatus = (int)ViewData["riskstatus"];
}

<div class="pageFormContent" layouth="56">
<form method="post" id="RiskHouInfoForm" action="DianDang/FKAudit/RiskControl/CreateHouInfo?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogReloadAjaxDone)">
@Html.ValidationSummary(true)

    @Html.HiddenFor(model => model.ID)
     @Html.HiddenFor(model => model.ProForHouInfo.REGINFOID)
    @Html.Hidden("RefRegInfoSubmitButton")
    <p>
        <label>
            申请编号：</label>
        <a class="button" href="DianDang/Apply/ProInfo/Details/@Model.ID?OpID=@ViewData["OperateID"]" Target="dialog" >
            <span>@Model.APPLYNO</span></a>
    </p>
    <p>
        <label>
            所属部门：</label>
        @Html.TextBoxFor(model => model.DEPNAME, new { @readonly = "true" })
        @Html.ValidationMessageFor(model => model.DEPNAME)
        @Html.HiddenFor(model => model.DEPID)
    </p>
    <p>
        <label>
            申请日期：</label>
        <span formatedate="yyyy-MM-dd">@Html.TextBoxFor(model => model.APPDATE,"{0:yyyy-MM-dd}", new { @class = "", @readonly = "true" })</span>
        @Html.ValidationMessageFor(model => model.APPDATE)
    </p>
    <p>
        <label>
            业务类型：</label>
         @Html.HiddenFor(model => model.BUSSTYPE)
                        <span>赎楼 </span>
    </p>
    <p>
        <label>
            贷款产品：</label>
        @Html.DropDownListFor(model => model.PRODUCTID, ddlProduct, new { @class = "combox", @selectedvalue = Model.PRODUCTID, @sumbitText = "PRODUCTNAME" })
        @Html.ValidationMessageFor(model => model.PRODUCTID)
    </p>
    <p>
        <label>
            来源渠道：</label>
        @Html.DropDownListFor(model => model.SOURCE, ddlSource, new { @class = "combox", @selectedvalue = Model.SOURCE })
        @Html.ValidationMessageFor(model => model.SOURCE)
    </p>
    <p>
        <label>
            中介人：</label>
        @Html.TextBoxFor(model => model.MEDIATOR, new { @class = "", @readonly = "true" })
        @Html.ValidationMessageFor(model => model.MEDIATOR)
        @Html.HiddenFor(model => model.MEDIATORID)
    </p>
    <p>
        <label>
            中介人账号：</label>
        @Html.TextBoxFor(model => model.MEDIATORACCOUNT, new { @class = "" })
        @Html.ValidationMessageFor(model => model.MEDIATORACCOUNT)
    </p>
    @* <p>
                        <label>
                            中介人手机号：</label>
                        @Html.TextBoxFor(model => model.MEDIATORTEL, new { @class = "" })
                        @Html.ValidationMessageFor(model => model.MEDIATORTEL)
                    </p>*@
    <div class="divider" />
    <p style="width: 200px">
        <label>
            存在特批：</label>
        @if (Model.ID == 0)
        {
            @Html.CheckBox("ISSPECIAL", Model.ISSPECIAL == 1, new { @class = "" })
            @Html.ValidationMessageFor(model => model.ISSPECIAL)
        }
        else
        { 
            @(Model.ISSPECIAL == 1 ? "是" : "否")
            <span>&nbsp;</span> <a class="button" href="DianDang/Apply/SpecailInfo/Details/@Model.SPECID?OpID=@ViewData["OperateID"]" Target="dialog" >
                <span>查看</span></a>
        }
    </p>
    <p>
        <label>
            跟进风控:</label>
      @*  @Model.AduRiskControl.AUDITBY*@
    </p>
    <div class="divider" />
    <p>
        <label>
            申请人姓名：</label>
        @Html.TextBoxFor(model => model.CUSTNAME, new { @class = "", @readonly = "true" })
        @Html.ValidationMessageFor(model => model.CUSTNAME)
    </p>
    <p>
        <label>
            证件类型：</label>
        @Html.DropDownListFor(model => model.DOCTYPE, ddlDocType, new { @class = "combox", @selectedvalue = Model.DOCTYPE, @sumbitText = "DOCTYPENAME" })
        @Html.ValidationMessageFor(model => model.DOCTYPE)
    </p>
    <p>
        <label>
            证件号码：</label>
        @Html.TextBoxFor(model => model.CUSTNO, new { @class = "required" })
        @Html.ValidationMessageFor(model => model.CUSTNO)
    </p>
    <p>
        <label>
            交易相对方：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.TRADEBY, new { @class = "" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.TRADEBY)
    </p>
    <p>
        <label>
            借款金额：</label>
        @Html.TextBoxFor(model => model.AMOUNT, new { @class = "" })
        万元
        @Html.ValidationMessageFor(model => model.AMOUNT)
    </p>
    <p>
        <label>
            贷款期限：</label>
        @Html.TextBoxFor(model => model.LOANPHASE, new { @class = "number" })
        @Html.ValidationMessageFor(model => model.LOANPHASE)
        @Html.RadioButtonFor(model => model.LOANPHAESTYPE, 0)
        天&nbsp;
        @Html.RadioButtonFor(model => model.LOANPHAESTYPE, 1)
        月
    </p>
    <p>
        <label>
            赎楼方式：</label>
        @Html.DropDownListFor(model => model.ProForHouInfo.FORHOUTYPE, ddlHouType, new { @class = "combox", @selectedvalue = Model.ProForHouInfo.FORHOUTYPE })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.FORHOUTYPE)
    </p>
    <p>
        <label>
            类型：</label>
        @Html.DropDownListFor(model => model.ProForHouInfo.BUSSTYPE, ddlBussType, new { @class = "combox", @selectedvalue = Model.ProForHouInfo.BUSSTYPE })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.BUSSTYPE)
    </p>
    <p>
        <label>
            物业位置：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.HOUADD, new { @class = "" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.HOUADD)
    </p>
    <p style="width: 95%">
        <label>
            物业权属：</label>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.TENRIGHT, new { @class = "", @title = "权利人", @alt = "权利人", @style = "width:100px" })</span>
        <span>
            @Html.TextBoxFor(model => model.ProForHouInfo.TENBANK, new { @class = "", @title = "抵押银行", @alt = "抵押银行", @style = "width:100px" })
        </span><span>
            @Html.TextBoxFor(model => model.ProForHouInfo.TENSUBBACK, new { @class = "", @title = "抵押支行", @alt = "抵押支行", @style = "width:100px" })
        </span>
        <span>
            @Html.TextBoxFor(model => model.ProForHouInfo.TENENDDATE,"{0:yyyy-MM-dd}", new { @class = "date", @alt = "截至日期", @style = "width:100px", formatedate = "yyyy-MM-dd" })</span>
        <span>
            @Html.TextBoxFor(model => model.ProForHouInfo.TENLEFTAMT, new { @class = "number", @alt = "尚欠款项", @style = "width:100px" })
        </span>
        @Html.ValidationMessageFor(model => model.ProForHouInfo.TENRIGHT)
    </p>
    <p style="width: 95%">
        <label>
            交易情况：</label>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.HOUPRICE, new { @class = "number", @title = "房产购建价", @alt = "房产购建价", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.HOUTOTALPRICE, new { @class = "number", @title = "交易总价", @alt = "交易总价", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.DOWNPAYAMT, new { @class = "number", @title = "已付定金", @alt = "已付定金", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.FIRSTPAYAMT, new { @class = "number", @title = "首期款项", @alt = "首期款项", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.PAYMOD, new { @class = "", @title = "付款方式", @alt = "付款方式", @style = "width:100px" })</span>
        <span>@Html.ValidationMessageFor(model => model.ProForHouInfo.HOUPRICE)</span>
    </p>
    <p style="width: 95%">
        <label>
            还款来源：</label>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.PAYBANK, new { @class = "", @title = "来源银行", @alt = "来源银行", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.PAYSUBBANK, new { @class = "", @title = "来源支行", @alt = "来源支行", @style = "width:100px" })</span>
        <span>@Html.TextBoxFor(model => model.ProForHouInfo.PROMISEAMT, new { @class = "number", @title = "承诺金额", @alt = "承诺金额", @style = "width:100px" })</span>
        <span>(万元)</span>
        @Html.ValidationMessageFor(model => model.ProForHouInfo.HOUPRICE)
    </p>
    <p>
        <label>
            利率：</label>
        @Html.TextBoxFor(model => model.RATE, new { @class = "number" })%
        @Html.ValidationMessageFor(model => model.RATE)
    </p>
    <p>
        <label>
            手续费：</label>
        @Html.TextBoxFor(model => model.LOANFEE, new { @class = "number" })%
        @Html.ValidationMessageFor(model => model.LOANFEE)
    </p>
    <p>
        <label>
            还款方式：</label>
        @Html.DropDownListFor(model => model.ProForHouInfo.SPAREFIELD1, ddlRepayment, new { @class = "combox", @selectedvalue = Model.ProForHouInfo.SPAREFIELD1 })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.SPAREFIELD1)
    </p>
    <p style="width: 95%">
        <label style="width: 180px">
            反担保措施文件及反担保措施1：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.COUGUA1, new { @class = "", @style = "width:500px" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.COUGUA1)
    </p>
    <p style="width: 95%">
        <label style="width: 180px">
            反担保措施文件及反担保措施2：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.COUGUA2, new { @class = "", @style = "width:500px" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.COUGUA2)
    </p>
    <p style="width: 95%">
        <label>
            落实情况1：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.VERIFILD1, new { @class = "", @style = "width:560px" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.VERIFILD1)
    </p>
    <p style="width: 95%">
        <label>
            落实情况2：</label>
        @Html.TextBoxFor(model => model.ProForHouInfo.VERIFILD2, new { @class = "", @style = "width:560px" })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.VERIFILD2)
    </p>
    <p>
        <label>
            项目经理：</label>
        @Html.TextBoxFor(model => model.SALESMAN, new { @class = "" })
        @Html.ValidationMessageFor(model => model.SALESMAN)
        @Html.HiddenFor(model => model.SALESMANID)
    </p>
    <p>
        <label>
            共同面签人：</label>
        @Html.DropDownListFor(model => model.ProForHouInfo.SIGNMAN, ddlSignMan, new { @class = "combox", @selectedvalue = Model.ProForHouInfo.SIGNMAN })
        @Html.ValidationMessageFor(model => model.ProForHouInfo.SIGNMAN)
    </p>
     @*审批信息*@
     @Html.Hidden("hidActiondo")
       
      
    
 

</form>
  
<div class="formBar" style="display:@(riskStatus==1?"none":"inline");width:100%">
        <ul>
        <li>
            <div class="buttonActive">
                <div class="buttonContent">
                    <button type="button"  onclick="toSave(0)">
                        保存</button></div>
            </div>
            <div class="buttonActive">
                <div class="buttonContent">
                    <button type="button"   onclick="toSave(1)">
                        提交</button></div>
            </div>
        </li>
        </ul>
    </div>
</div>
 

<script type="text/javascript">
    function toSave(action) {
        $form = $("#RiskHouInfoForm");
        $("#hidActiondo").val(action);
        if (action==0) {
            validateCallback($form, dialogAjaxDone,"");
        }
        else {
            validateCallback($form, dialogAjaxDone, "您确定要提交对此笔立项申请的审批吗?");
        }

    }
</script>
